﻿using System;

namespace ApolloExtension.Core.Test
{
    class Program
    {
        static void Main(string[] args)
        {
            //Com.Ctrip.Framework.Apollo.Logging.LogManager.UseConsoleLogging(Com.Ctrip.Framework.Apollo.Logging.LogLevel.Trace);
            var config = ApolloConfig2.GetIConfigurationByNamespace("sunny_test_namespace");
            Console.Write("请输入Key:");
            var key = Console.ReadLine().Trim();
            while (!string.IsNullOrEmpty(key))
            {
                Console.WriteLine($"key:{key},val:{config[key]}");
                Console.Write("请输入Key:");
                key = Console.ReadLine().Trim();
            }

            var value1 = ApolloConfig.Configuration[""];
            var value2 = ApolloConfig.GetIConfigurationByNamespace("namespaceName")["key"];
            Console.ReadLine();
        }
    }
}
